import os from 'os';
import path from 'path';
import * as url from 'url';
// Change this to bump to a newer version of mint's client
export const TARGET_MINT_VERSION = 'v0.0.369';
// package installation location
export const INSTALL_PATH = url.fileURLToPath(new URL('.', import.meta.url));
export const HOME_DIR = os.homedir();
export const DOT_MINTLIFY = path.join(HOME_DIR, '.mintlify');
export const MINT_PATH = path.join(DOT_MINTLIFY, 'mint');
export const VERSION_PATH = path.join(MINT_PATH, 'mint-version.txt');
export const CLIENT_PATH = path.join(MINT_PATH, 'apps', 'client');
export const NEXT_SERVER_PATH = path.join(MINT_PATH, 'node_modules', 'next', 'dist', 'server', 'next-server.js');
export const NEXT_STATIC_PATH = path.join(CLIENT_PATH, '.next', 'static');
export const NEXT_CONFIG_PATH = path.join(CLIENT_PATH, '.next', 'required-server-files.json');
export const NEXT_PUBLIC_PATH = path.join(CLIENT_PATH, 'public');
export const NEXT_PROPS_PATH = path.join(CLIENT_PATH, 'src', '_props');
export const TAR_URL = `https://mint-releases.b-cdn.net/mint-${TARGET_MINT_VERSION.slice(1)}.tar.gz`;
export const TAR_PATH = path.join(DOT_MINTLIFY, `mint.tar.gz`);
// command execution location
export const CMD_EXEC_PATH = process.cwd();
export const SUPPORTED_MEDIA_EXTENSIONS = [
    'jpeg',
    'jpg',
    'jfif',
    'pjpeg',
    'pjp',
    'png',
    'svg',
    'svgz',
    'ico',
    'webp',
    'gif',
    'apng',
    'avif',
    'bmp',
    'mp4',
];
